package test.com.sms.selenium.singlepoint.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;

public class SpHRNewHireNewPageUtil extends SeleniumPageUtil{
	public final static By HRNH_LINK_SAVE = By.id("ctl44_btnSave");
	public final static By HRNH_LINK_CANCEL = By.id("ctl44_btnClose");
	
	public final static By HRNH_SELECT_LINK_OF_BUSINESS = By.id("ctl44_ddlBusinessLine");
	
	public static final void waitForNewHireNewPageToLoad(){
		SeleniumUtil.waitOnElements(new By[]{
				HRNH_LINK_SAVE, HRNH_LINK_CANCEL, HRNH_SELECT_LINK_OF_BUSINESS
		});
		SeleniumUtil.assertTrue(SeleniumUtil.isDisplayed(SeleniumUtil.getCachedElement(HRNH_LINK_SAVE)));
		SeleniumUtil.assertTrue(SeleniumUtil.isDisplayed(SeleniumUtil.getCachedElement(HRNH_LINK_CANCEL)));
		SeleniumUtil.assertTrue(SeleniumUtil.isDisplayed(SeleniumUtil.getCachedElement(HRNH_SELECT_LINK_OF_BUSINESS)));
	}
}
